<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.io.PrintWriter"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<% String baseURL = request.getRequestURL().toString().replace(request.getRequestURI().substring(1), request.getContextPath()); %>
<link href="<% out.print(baseURL);%>/view/template/css/main1.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="view/template/js/jquery.js"></script>
<script type="text/javascript" src="view/template/js/jquery-ui.min.js"></script>
<link media="all" type="text/css" href="view/template/css/jquery-ui.css" rel="stylesheet"/>
<script>
	$(function() {
		$( "#tabs" ).tabs();
	});
	
	
	$(document).ready(function() {
	    $("#patent-details").click(function () {
	    	$('#patent-details-div').toggle("slow");
			$(this).toggleClass("arrow_down");
	    });
		$("#patent-medical").click(function () {
	    	$('#patent-medical-div').toggle("slow");
			$(this).toggleClass("arrow_down");
	    });
		$("#patent-admission").click(function () {
	    	$('#patent-admission-div').toggle("slow");
			$(this).toggleClass("arrow_down");
	    });
		$("#guardian-details").click(function () {
	    	$('#guardian-details-div').toggle("slow");
			$(this).toggleClass("arrow_down");
	    });
	});
	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<sj:head />
<s:head/>
<s:set name="theme" value="'simple'" scope="page" />
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<div class="header-up-part">
				<div class="logo">
					<a href="#"><img src="view/template/images/logo.jpg" alt="logo" />
					</a>
				</div>
				<ul>
					<li>Welcome <strong><sec:authentication
								property="principal.username" />
					</strong>
					</li>
					<li><s:url action="my_profile" var="my_profile_action"/><a href="${my_profile_action}"><s:text name="my_profile"/></a>
					</li>
					<li><s:url action="logout" var="logout_action"/><a href="${logout_action}"><s:text name="logout"/>
					</li>
					<li><s:url var="english" includeParams="all">
							<s:param name="request_locale">en</s:param>
						</s:url> <a href="${english}"><s:text name="english" />
					</a></li>
					<li><s:url var="sinhala" includeParams="all">
							<s:param name="request_locale">si_LK</s:param>
						</s:url> <a href="${sinhala}"><s:text name="sinhala" />
					</a></li>
				</ul>
			</div> 
			<div class="menu-part">
				<ul>
					<li><s:url action="create_users" var="create_users_action"/><a href="${create_users_action}"><s:text name="menu.system_admin"/></a></li>
					<li><s:url action="search_patient" var="search_patient_action"/><a href="${search_patient_action}"><s:text name="menu.patient_registration_ehr"/></a></li>
					<li><s:url action="request_drugs" var="request_drugs_action"/><a href="${request_drugs_action}"><s:text name="menu.supply_chain"/></a></li>
					</li>
				</ul>
			</div>
		</div>
	
</body>
</html>